-- the debug mode
if is_mode("debug") then
    
    -- enable the debug symbols
    set_symbols("debug")

    -- disable optimization
    set_optimize("none")
end

-- the release mode
if is_mode("release") then

    -- set the symbols visibility: hidden
    set_symbols("hidden")

    -- enable fastest optimization
    set_optimize("fastest")

    -- strip all symbols
    set_strip("all")
end

-- define target
target("dzlua")

    -- set kind
    set_kind("binary")

    -- add files
    add_files("src/**.cpp")
    add_files("third_party/jsoncpp/**.cpp")

    add_includedirs("third_party")
    add_linkdirs("third_party/lib")

    add_links("dzlua")

    add_cxflags("-EHsc")
target_end()
    